From 95803b92c75320e76dffdf9f809c74ad8cd622de Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 5 Mar 2001 11:29:51 +0000 Subject: [PATCH] (read_minibuf): Clean up the binding stack if called noninteractively. --- src/minibuf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/minibuf.c b/src/minibuf.c index a5e8bf8369e..17302866520 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -397,9 +397,12 @@ read_minibuf (map, initial, prompt, backup_n, expflag, } if (noninteractive) - return read_minibuf_noninteractive (map, initial, prompt, backup_n, - expflag, histvar, histpos, defalt, - allow_props, inherit_input_method); + { + val = read_minibuf_noninteractive (map, initial, prompt, backup_n, + expflag, histvar, histpos, defalt, + allow_props, inherit_input_method); + return unbind_to (count, val); + } /* Choose the minibuffer window and frame, and take action on them. */ -- 2.30.2